﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TS2015
{
    public class CheckRole
    {
        public static bool IsRole(string role,string[] roles)
        {
            if (roles==null || roles.Length == 0 || !roles.Contains(role))
                return false;
            return true;
        }
    }
}